export  default {
  completeSize(state,getters){
    // return state.todos.filter(todo => todo.complete == true).length
    return state.todos.reduce((preTotal,todo)=>{return preTotal +todo.complete==true?1:0},0);
  },

}
